package com.mydemo.design_pattern.action_type.iterator_pattern.impl;

import com.mydemo.design_pattern.action_type.iterator_pattern.Container;
import com.mydemo.design_pattern.action_type.iterator_pattern.Iterator;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: NameRepository, v1.0 2019-09-23 10:27 liming1 Exp $
 */
public class NameRepository implements Container {

    private Object[] obj;

    private Iterator iterator;

    public NameRepository(Object[] obj) {
        this.obj = obj;
    }

    @Override
    public Iterator getIterator() {
        return new NameIterator(obj);
    }
}
